import request from '@/utils/request'

// 查询学生报名信息列表
export function listRegistration(query) {
  return request({
    url: '/project/registration/list',
    method: 'get',
    params: query
  })
}

// 查询学生报名信息详细
export function getRegistration(id) {
  return request({
    url: '/project/registration/' + id,
    method: 'get'
  })
}

// 新增学生报名信息
export function addRegistration(data) {
  return request({
    url: '/project/registration',
    method: 'post',
    data: data
  })
}

// 修改学生报名信息
export function updateRegistration(data) {
  return request({
    url: '/project/registration',
    method: 'put',
    data: data
  })
}

// 删除学生报名信息
export function delRegistration(id) {
  return request({
    url: '/project/registration/' + id,
    method: 'delete'
  })
}

// 导入学生报名信息
export function importRegistration(data) {
  return request({
    url: '/project/registration/importData',
    method: 'post',
    data: data
  })
}

// 下载学生报名信息导入模板
export function importTemplate() {
  return request({
    url: '/project/registration/importTemplate',
    method: 'get'
  })
}
